import random
def playGame(guess):
    score = 1
    if winning_Num == guess:
        print("YOU GOT IT ON THE FIRST TRY!!")
    while winning_Num != guess:
        if winning_Num < guess:
            print("The number is lower than your guess.")
        else:
            print("The number is higher than your guess.")
        guess = int(input("Give me another guess: "))
        score += 1
        list_Of_Guesses.append(guess)
    return score
print("Welcome to the Number Guessing Game!")
print("You will be trying to guess a number between 0 and 100 in the fewest number of guesses.")
print("Each round, the number of tries it takes to get your number will be added to your total score.")
print("You will play 5 rounds.\n")
total_score = 0
for i in range(5):
    print("Round", str(i+1))
#Create a list of guesses
list_Of_Guesses = []
#Generate a random number
winning_Num = random.randint(0, 100)
#Get a guess
first_guess = int(input("What is your first guess? "))
#Add first guess to list
list_Of_Guesses.append(first_guess)
total_score += playGame(first_guess)
print("End of round #", str(i+1))
print("The winning number was ", str(winning_Num))
for element in list_Of_Guesses:
    print("Guess: ", str(element))
    print("Your score so far: ", str(total_score))
    print("\n")
    print("Thank you for playing!!")
    print("Your ending score after 5 rounds is", str(total_score))